package cn.wolfcode.luowowo2.article.mapper;

import cn.wolfcode.luowowo2.article.domain.Destination;
import cn.wolfcode.luowowo2.common.query.DestinationQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);
    List<Destination> getDestByDeep(Integer deep);

    List<Destination> selectDestByIds(Long[] refIds);

    List<Destination> selectForlist(DestinationQueryObject qo);

    void updateHotValue(@Param("hot") Boolean hot, @Param("id") Long id);

    void setInfo(@Param("info") String info, @Param("id") Long id);

    List<Destination> getHotDestByRegionId(Long[] destIds);

    Long[] getChildIdsByParentId(Long parentId);
}